package cn.hdu.liang.ch10;

import java.util.Optional;

public class OptionalMain {
    public static void main(String[] args) {
        Optional<Car> optCar = Optional.empty();
        System.out.println(optCar);

        Car car = new Car();
        Optional<Car> optCar2 = Optional.of(car);
        System.out.println(optCar2);



    }
}
